<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <title>测试程序</title>
    <load href="__PUBLIC__/Css/redmond.datepick.css" />
    <load href='__PUBLIC__/Js/jquery.js'/>
    <load href='__PUBLIC__/Js/formValidator/formValidator-4.1.3.js'/>
    <load href='__PUBLIC__/Js/formValidator/formValidatorRegex.js'/>
    <load href='__PUBLIC__/Js/jquery.datepick.min.js'/>
    <load href='__PUBLIC__/Js/jquery.datepick-zh-CN.js'/>
    <script type="text/javascript">
        $(document).ready(function(){
            $.formValidator.initConfig({formID:"form1",theme:'ArrowSolidBox',mode:'AutoTip',onError:function(msg){alert(msg)},inIframe:true});
            $("#us").formValidator({onShow:"请输入用户名,只有输入\"maodong\"才是对的",onFocus:"用户名至少6个字符,最多10个字符",onCorrect:"该用户名可以注册"}).inputValidator({min:6,max:10,onError:"你输入的用户名非法,请确认"}).regexValidator({regExp:"username",dataType:"enum",onError:"用户名格式不正确"}).defaultPassed();
            $("#csny").datepick().formValidator({onShow:"请输入的出生日期",onFocus:"请输入的出生日期，不能全部是0哦",onCorrect:"你输入的日期合法"}).inputValidator({min:"1900-01-01",max:"2020-01-01",type:"value",onError:"日期必须在\"1900-01-01\"和\"2020-01-01\"之间"}).defaultPassed();
            $.formValidator.reloadAutoTip();
        });
    </script>
</head>
<body>
<form name="form1" id="form1" method="post" action="upPhoto.php" >
    <input type="text" id="us" name="us" style="width:120px" value="maodong" /> <br />
    <input type="text" id="csny" name="csny" style="width:120px" value="1982-09-21" /> <br />
<input type="submit" name="Submit" value="开始上传" />
</form>
</body>
</html>